package com.headStorm.hutooluse;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zhangqq
 * @create 2021-12-22 11:55
 **/
@Data
@NoArgsConstructor
public class SortDomain implements Comparable<SortDomain>{
    private Integer sortNum;

    public SortDomain(int sortNum) {
        this.sortNum = sortNum;
    }

    @Override
    public int compareTo(SortDomain o) {
        return this.getSortNum() - o.getSortNum();
    }
}
